//package com.michaelbulava.TFS.vc.tfsFilePath;
//
//import com.intellij.openapi.diagnostic.Logger;
//import com.intellij.openapi.editor.Document;
//import com.intellij.openapi.fileEditor.FileDocumentManager;
//import com.intellij.openapi.fileTypes.FileType;
//import com.intellij.openapi.project.Project;
//import com.intellij.openapi.vcs.FilePath;
//import com.intellij.openapi.vcs.actions.VcsContext;
//import com.intellij.openapi.vcs.actions.VcsContextFactory;
//import com.intellij.openapi.vfs.VirtualFile;
//import com.michaelbulava.TFS.common.item.ServerItemPath;
//import com.michaelbulava.TFS.log.FileLogger;
//import com.microsoft.tfs.core.clients.versioncontrol.soapextensions.ExtendedItem;
//import com.microsoft.tfs.core.clients.versioncontrol.soapextensions.Item;
//import com.microsoft.tfs.core.clients.versioncontrol.soapextensions.Workspace;
//import com.microsoft.tfs.core.util.FileEncoding;
//import com.microsoft.tfs.util.Check;
//import com.sun.corba.se.spi.activation.Server;
//import org.jetbrains.annotations.NotNull;
//import org.jetbrains.annotations.Nullable;
//
//import java.io.File;
//import java.nio.charset.Charset;
//
///**
// * Created by MichaelA on 10/5/2015.
// */
//public class TFSFilePath implements FilePath {
//    private static final Logger log = FileLogger.getInstance(TFSFilePath.class);
//
//    private final ServerItemPath serverItemPath;
//    private final Workspace workspace;
//
//    private int remoteVersion;
//    private FileEncoding encoding;
//    private ExtendedItem extendedItem;
//    private boolean mappedLocalPathCalculated = false;
//    private String mappedLocalPath;
//
//
//
//    public TFSFilePath(Workspace workspace, ServerItemPath serverPath){
//        Check.notNull(workspace, "workspace");
//        Check.notNull(serverPath, "serverItemPath");
//        this.workspace = workspace;
//        this.serverItemPath = serverPath;
//    }
//
//    public TFSFilePath(Workspace workspace, ExtendedItem extendedItem){
//        Check.notNull(workspace, "workspace");
//        Check.notNull(extendedItem, "extendedItem");
//        this.workspace = workspace;
//        this.serverItemPath = new ServerItemPath(extendedItem.getTargetServerItem());
//
//        this.extendedItem = extendedItem;
//        this.encoding = extendedItem.getEncoding();
//        this.remoteVersion = extendedItem.getLatestVersion();
//    }
//
//
//    private void Test(){
//        VcsContextFactory.SERVICE.getInstance().createFilePathOnNonLocal();
//    }
//
//    /**
//     * @return a virtual file that corresponds to this path, or null if the virtual file is no more valid.
//     */
//    @Nullable
//    @Override
//    public VirtualFile getVirtualFile() {
//        return null;
//    }
//
//    /**
//     * @return the virtual file that corresponds to the parent file path, or null if the virtual file is no more valid.
//     */
//    @Nullable
//    @Override
//    public VirtualFile getVirtualFileParent() {
//        return null;
//    }
//
//    /**
//     * @return the {@link File} that corresponds to the path. The path might be non-existent or not local.
//     * @see #isNonLocal()
//     */
//    @NotNull
//    @Override
//    public File getIOFile() {
//        return null;
//    }
//
//    /**
//     * @return the file name (without directory component)
//     */
//    @NotNull
//    @Override
//    public String getName() {
//        return null;
//    }
//
//    /**
//     * @return the path to the file in the format suitable for displaying in the UI,
//     * e.g. for local file it is the path to this file with system separators.
//     */
//    @Override
//    public String getPresentableUrl() {
//        return null;
//    }
//
//    /**
//     * @deprecated to remove in IDEA 16.
//     * Use {@link FileDocumentManager#getDocument(VirtualFile)} directly.
//     */
//    @Nullable
//    @Override
//    public Document getDocument() {
//        return null;
//    }
//
//    @NotNull
//    @Override
//    public Charset getCharset() {
//        return null;
//    }
//
//    /**
//     * @param project
//     * @return the character set, considering the project settings and the virtual file corresponding to this FilePath (if it exists).
//     */
//    @NotNull
//    @Override
//    public Charset getCharset(Project project) {
//        return null;
//    }
//
//    /**
//     * @return the type of the file.
//     */
//    @NotNull
//    @Override
//    public FileType getFileType() {
//        return null;
//    }
//
//    /**
//     * @deprecated to remove in IDEA 16.
//     * Use {@code com.intellij.openapi.vfs.VfsUtil#findFileByPath} or {@code com.intellij.openapi.vfs.LocalFileSystem#findFileByPath} instead.
//     */
//    @Override
//    public void refresh() {
//
//    }
//
//    /**
//     * @deprecated to remove in IDEA 16.
//     * Use {@code com.intellij.openapi.vfs.LocalFileSystem#refreshAndFindFileByPath} instead.
//     */
//    @Override
//    public void hardRefresh() {
//
//    }
//
//    /**
//     * @return the path to the file represented by this file path in the system-independent format.
//     */
//    @NotNull
//    @Override
//    public String getPath() {
//        return null;
//    }
//
//    /**
//     * @return true if the path represents the directory
//     */
//    @Override
//    public boolean isDirectory() {
//        return false;
//    }
//
//    /**
//     * Check if the provided file is an ancestor of the current file.
//     *
//     * @param parent a possible parent
//     * @param strict if false, the method also returns true if files are equal
//     * @return true if {@code this} file is ancestor of the {@code parent}.
//     */
//    @Override
//    public boolean isUnder(@NotNull FilePath parent, boolean strict) {
//        return false;
//    }
//
//    /**
//     * @return the parent path or null if there is no parent of this file.
//     */
//    @Nullable
//    @Override
//    public FilePath getParentPath() {
//        return null;
//    }
//
//    /**
//     * @return true if the path does not represents a file in the local file system
//     */
//    @Override
//    public boolean isNonLocal() {
//        return false;
//    }
//}
